package test.test6_21;

public class Demo07 {
    public static void main(String[] args) {

        decimalToBinary(8);

    }

    private static void decimalToBinary(int n) {
        //递归的出口
        if (n == 0) {
            return;
        }

        decimalToBinary(n / 2);
        System.out.print(n % 2);

    }
}

